package com.battle.service.repository.in;

import com.battle.pojo.entity.TrainingSoloDetails;
import com.battle.pojo.vo.trainingSoloDetails.GetTrainingSoloDetailsListVo;
import nirvana.core.repository.IRepository;

import java.time.LocalDate;
import java.util.Map;
import java.util.List;

    import com.battle.pojo.dto.trainingSoloDetails.SelectTrainingSoloDetailsDto;
    import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
* 【描 述】：
* 【环 境】：J2SE
* 【详 细】：
*
*/
public interface TrainingSoloDetailsRepository extends IRepository< TrainingSoloDetails > {


    /**
    * 搜索单人训练
    * @param dto
    * @return
    */
    Page<GetTrainingSoloDetailsListVo> selectTrainingSoloDetails(SelectTrainingSoloDetailsDto dto);

    /**
    * 获取Map
    * @param ids
    * @return
    */
    Map<Long, TrainingSoloDetails> getMap(List<Long> ids);

    /**
     * 根据路径和时间查询单人训练详情
     * @param organizationIds
     * @param startDate
     * @param endDate
     * @return
     */
    List<TrainingSoloDetails> selectSoleDetailsByPath(List<Long> organizationIds, LocalDate startDate, LocalDate endDate,Long trainingProgramId);
}